import React, { useMemo } from "react";
import { useLocation } from "react-router-dom";
const IFrame = () => {
    const location = useLocation();
    const hash = useMemo(() => {
        const hashValue = location.hash?.substring(1);
        return decodeURIComponent(hashValue);
    }, [location]);
    console.log(hash);
    return (<iframe src={hash} style={{ width: "100%", height: "100%", border: "none"}}/>);
};

export default IFrame;
